package com.jhs.kjs.dto;

import com.jhs.kjs.model.daumMap.frame.ExtDirection;
import com.jhs.kjs.model.daumMap.frame.ILatLng;

public class CarSensor_PositionDTO extends CarSensorDTO implements ILatLng{
	private CarPositionDTO position = new CarPositionDTO();
	public Long getCarCode() {
		return position.getCarCode();
	}

	public void setCarCode(Long carCode) {
		position.setCarCode(carCode);
	}
	public Double getLat() {
		return position.getLat();
	}
	public void setLat(Double lat) {
		position.setLat(lat);
	}
	public Double getLng() {
		return position.getLng();
	}
	public void setLng(Double lng) {
		position.setLng(lng);
	}
	public int getDirection() {
		return position.getDirection();
	}
	public void setDirection(int direction) {
		position.setDirection(direction);
	}
	public String getAddress() {
		return position.getAddress();
	}
	public void setAddress(String address) {
		position.setAddress(address);
	}
	public String getAddressComponent1() {
		return position.getAddressComponent1();
	}
	public void setAddressComponent1(String addressComponent1) {
		position.setAddressComponent1(addressComponent1);
	}
	public String getAddressComponent2() {
		return position.getAddressComponent2();
	}
	public void setAddressComponent2(String addressComponent2) {
		position.setAddressComponent2(addressComponent2);
	}
	public String getAddressComponent3() {
		return position.getAddressComponent3();
	}
	public void setAddressComponent3(String addressComponent3) {
		position.setAddressComponent3(addressComponent3);
	}
	@Override
	public int getCardinal() {
		return ExtDirection.getCardinal(getDirection());
	}
}
